package com.authine.cloudpivot.ext.utils.message;

import com.authine.cloudpivot.ext.constants.AppConst;
import com.authine.cloudpivot.ext.constants.ServiceUrlConst;
import com.authine.cloudpivot.ext.utils.HttpClients;
import lombok.extern.slf4j.Slf4j;
import java.util.List;

@Slf4j
public class MessageUtils {
    /**
     * 创建系统事件消息
     *
     * @return 用户信息
     */
    public static String createdSystemMessage(List<String> contents) {
        //生成消息通知
        String messageUrl = HttpClients.getUrl(AppConst.PERSONAL_CENTER, ServiceUrlConst.CREATED_SYSTEM_MESSAGE_URL);
        String messageRes = HttpClients.execute(messageUrl, contents);
        log.info("-----------创建系统事件消息res：" + messageRes);
        return messageRes;
    }
}
